import request from "@/utils/request";

/**会员数据列表 */
export const selectMemberDataPage = (params) => {
  return request({
    url: "/admin/userData/selectMemberDataPage",
    method: "get",
    params,
  });
};

/**统计最近五天每天的新增会员数及会员总数 */
export const statisticsMemberNumber = () => {
  return request({
    url: "/admin/statistics/statisticsMemberNumber",
    method: "get",
  });
};

/**统计最近五天每天的会员活跃数量 */
export const statisticsMemberActiveNumber = () => {
  return request({
    url: "/admin/statistics/statisticsMemberActiveNumber",
    method: "get",
  });
};

/**统计会员等级分布 */
export const statisticsMemberLevelDistribution = () => {
  return request({
    url: "/admin/statistics/statisticsMemberLevelDistribution",
    method: "get",
  });
};

/**统计新老客户成交金额级新老客户成交数量 */
export const statisticsUserMakeNumber = () => {
  return request({
    url: "/admin/statistics/statisticsUserMakeNumber",
    method: "get",
  });
};
